Part Number Hot Search : 
N1475 500592 015020 MAX8732A MM1593 XT484LC4 28F800 4007G
Product Description
Full Text Search
 

To Download 22374A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  
          
     
      !"


  # 

  
 
 $     
   %
              
   !" continuity of specifications
  
  
     
    " 
 

    
             
    %
   "       
 $  %
      " continuity of ordering part numbers  !     &  
'(')("    
  %    
* +,  
  " for more information +       !              " migrating between boot and uniform sectored flash devices application note publication number 22374 revision a amendment 0 issue date may 12, 1999
publication# 22374 rev: a amendment/ 0 issue date: may 12, 1999 migrating between boot and uniform sectored flash devices application note the purpose of this bulletin is to describe the software algorithm changes necessary to convert from a boot sectored flash device to a uniform sectored flash de- vice or vise versa. changes are required only for applications that require sector erase capabilities in system. if the flash device is read-only within a system, programmed in system but not erased, or is erased with chip erase only, there is no functional difference between boot and uniform sectored devices and there- fore no need to make any software changes. the origins of se ctor erase flash memories the first flash devices manufactured were bulk erase flash devices. bulk erase flash devices could pro- gram (change a ?1? to a ?0?) information into the device a byte at a time, but required the entire flash device be erased (change ?0?s? to ?1?s?) every time a byte of mem- ory needed to be erased. this wasn?t the most efficient way of changing data because you had to erase and re- program the whole flash device for any erase no matter how small the change. to solve this problem, flash with erasable sectors was developed. now, instead of eras- ing the entire flash device at one time, you could erase all memory within an erase sector independent of other sectors. this was a 16 kbyte block of memory to begin with, so the 1 mb device (where erase sectors were first implemented) had eight 16 kbyte erase sectors which could be erased independently of each other. since this device was introduced, erase sectors have further changed into different organizations to better suit the needs of today?s applications. flash devices now are organized into two different erase architectures, boot and uniform, and erase sectors also have the ability to be individually or group protected against accidental programming or erase in system. the difference betwee n boot and uniform sectored flash architectures the difference between a boot sectored device and a uniform sectored device is the make up of the first or last 64 kbytes of memory. for a uniform device, the 64 kbytes are a single erase block, which is similar to the rest of the erase sectors within the device. uniform sectored devices are ideal for building large memory arrays since the erase blocks are all the same size and therefore easily managed. for boot devices, the first or last 64 kbytes is subdivided into several erase blocks. typically these smaller erase blocks are in one of two configurations: 16 kbyte, 8k byte, 8k byte, 32 kbyte or eight 8 kbyte sectors. these smaller erase sectors are generally used to store boot code or parametric data. the reason for this is that boot code and parametric data usually does not require a whole 64 kbyte sector, but still need to be placed in a separate sector so it can be properly pro- tected or changed without affecting other portions of code. smaller boot sectors permit this without having to waste an entire 64 kbyte sector. boot sectored de- vices also have the option of placing the smaller boot sectors within the first 64 kbytes of the address range (called bottom boot) or last 64 kbytes of the address range (called top boot). the reason for this option is due to the way microcontrollers access the initial boot code required to power on. two conventions for micro- controllers exist: top-boot convention, where the first address fetch on re-initialization is performed at the top of memory space, and bottom-boot, where the first fetched address is at the bottom of memory space. mi- crocontrollers based of ibm, risc, or motorola processors boot from bottom of memory space, and those from intel and dec boot from the top of memory space. the following are examples of amd?s low voltage 16 mbit and 32 mbit boot sectored devices and low volt- age 64 mbit uniform sectored device.
2 migrating between boot and uniform sectored flash devices software changes when migrating from boot to uniform case 1 the system does not require modifications of any of the boot sectors independent of one another, i.e. all boot sectors can be erased together. solution a small software change may be required. instead of asking the device to erase all of the smaller boot sec- tors, you can just ask it to erase the single larger 64k byte block. the command sequence to erase all of the boot sectors at once for the am29lv160bb should look something like this: if the boot command sequence is used on a uniform device the net effect will be the same, the first 64 kbytes of the flash device, which sa0, sa1, sa2, & sa3 now point to, will be erased once. the uniform flash device will ignore the additional sector erase com- mands since the commands essentially tell the flash device to erase the first uniform sector four times. no code change is necessary, however the code will not be as clean as if the code had specifically been written for a uniform sectored device. in order to clean up the code, just remove the last three sector erase pulses. the modified sector erase command should look like the following sequence: where sa0 is now any address within the first 64 kbyte uniform sector. 31 64 kbyte sectors 63 64 kbyte sectors 127 64 kby te sector s 16 kbyte sector 8 kbyte sector 8 kbyte sector 32 kbyte sector 64 kbyte sector 64 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 64 kbyte sector 64 kbyte sector 64 kbyte sector 64 kbyte sector 64 kbyte sector am29lv160b am29lv320b am29lv640u address 555 2aa 555 555 2aa sa0 sa1 sa2 sa3 data aa 55 80 aa 55 30 30 30 30 address 555 2aa 555 555 2aa sa0 data aa 55 80 aa 55 30 16 kbyte sector 64 kbyte sector 32 kbyte sector 8 kbyte sector 8 kbyte sector 64 kbyte secto r 64 kbyte secto r sa0 s a0 s a1 s a2 s a3 old boot sectored new uniform sectore d
migrating between boot and uniform sectored flash devices 3 case 2 the system requires an erase to one or more of the boot blocks, but data in the other boot blocks need to be preserved. solution you will need to change some address pointers for the smaller boot blocks. to determine if the code currently in the boot sectors needs to be placed in its own indi- vidual 64 kbyte sector, the question you need to ask is: does the code need to be modified by itself or can it be updated at the same time as other parts of the code? if it can be modified with other portions of the code, then you can group portions of the code together to po- tentially occupy all or part of a single 64 kbyte sector. if it absolutely needs to be changed by itself then you must place it in its own 64 kbyte sector. for each ad- ditional sector required you need to change the address pointers. let?s look at an example: in this case, let?s assume that you are migrating from a 32 mb boot block device to a 64 mb uniform device. the first two 8k bytes sectors are the boot code, which is never changed, and the other 8 kbyte boot sectors are used to store the operating code, which may need to be upgraded later. the boot code must be loaded into it?s own 64 kbyte sector and the addressing does not change. the rest of the boot sectors need to be placed in a one of the new 64 kbyte sectors available in the larger memory device and the address pointers updated. also please note that when migrating from boot to uniform it may be necessary to leave a small amount of memory space unused (48 kbyte in the last figure) in order to retain the flexibility of the older boot sectored device. software changes when migrating from uniform to boot case 1 the system does not need to take advantage of the smaller boot sectors. solution a small software change is needed to tell flash device to erase all of the smaller sectors at once. this can be done by adding the sector addresses to the end of the normal sector erase command. looking at an example going from uniform to bottom boot, the original sector erase command for a uniform sectored device would look like this: where sa0 is any address within the first 64 kbyte sec- tor. in order to convert to a bottom boot device you need to modify the sector erase command to look like this: now sa0 points to any address within the first 16 kbytes, sa1 points to an address within the next 8 kbytes, sa2 points to the next 8 kbytes after that, and finally sa3 points to the last 32 kbytes. together the sector erases cover the first 64 kbytes of the de- vice. so this command will erase all of the small boot sectors at once, effectively making it one large uniform sector. all other sector erase commands will remain the same since the devices are identical past the first 64 kbytes. case 2 the system will be taking advantage of the flexibility of- fered by the smaller boot sectors by erasing them separately of one another. solution software changes will be necessary, but only to control erasing of the smaller sectors. erasing of other sec- tors, programming, and reading the flash device remain the same. for each sector to be erased sepa- rately you need to include the following command sequence to specify it independent of the other sectors as well as identifying when the command will be called in the code. 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 8 kbyte sector 16 kbytes available 64 kbyte sector 48 kbytes not used am29lv320b am29lv640u address 555 2aa 555 555 2aa sa0 data aa 55 80 aa 55 30 address 555 2aa 555 555 2aa sa0 sa1 sa2 sa3 data aa 55 80 aa 55 30 30 30 30
4 migrating between boot and uniform sectored flash devices so with the older uniform sector you need only one erase command for the first or last 64 kbyte sector. now with a boot device you can have up to four differ- ent erase commands for a 16 kbyte, 8 kbyte, 8 kbyte, and 32 kbyte configuration or up to eight different sec- tor erase commands for an eight 8 kbyte boot configuration. please note that if a boot sectored device is acciden- tally used with code designed for a uniform device there could be a potential problem. some data that was thought to be erased, will still be present (since a sector erase issued to sector 0 will erase 64 kbyte in the am29lv017b will only erase a 16 kbyte sector on the am29lv320db). any attempt to program data from a ?0? to a ?1? in a sector which has not been erased will result in the flash device going to an error state. address 555 2aa 555 555 2aa sa data aa 55 80 aa 55 30


▲Up To Search▲   

 
Price & Availability of 22374A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X